package com.lfy.modules.letter.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class LetterDTO {
    @Length(min = 1,max = 100,message = "主题长度必须在1-100之间")
    @NotBlank(message = "主题不能为空")
    private String subject;
    @Length(min = 1,max = 5000,message = "内容长度必须在1-5000之间")
    @NotBlank(message = "内容不能为空")
    private String content;
    @NotNull(message = "接收者不能为空")
    private Long receiveId;
    private Integer isSendEmail;
}
